﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

namespace JunYu.CodeGeneration.Migrations
{
    public partial class InitialCreate : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "T_DBConnectionInfo",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    ConnecttiomName = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: false),
                    DbType = table.Column<int>(type: "int", nullable: false),
                    Host = table.Column<string>(type: "nvarchar(25)", maxLength: 25, nullable: true),
                    Post = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true),
                    DbName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    UserName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    PassWord = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    CreateMan = table.Column<string>(type: "nvarchar(25)", maxLength: 25, nullable: true),
                    DeleteMan = table.Column<string>(type: "nvarchar(25)", maxLength: 25, nullable: true),
                    UpdateMan = table.Column<string>(type: "nvarchar(25)", maxLength: 25, nullable: true),
                    IsDelete = table.Column<bool>(type: "bit", nullable: false),
                    DeleteTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    Remark = table.Column<string>(type: "nvarchar(255)", maxLength: 255, nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_T_DBConnectionInfo", x => x.Id);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "T_DBConnectionInfo");
        }
    }
}
